<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>退货审核</title>
    <link rel="stylesheet" type="text/css" href="/webapp/css/easyui.css">
    <link rel="stylesheet" type="text/css" href="/webapp/css/icon.css">
    <link rel="stylesheet" type="text/css" href="/webapp/css/color.css">
    <link rel="stylesheet" type="text/css" href="/webapp/css/public.css">
    <script type="text/javascript" src="/webapp/js/lib/jquery.min.js"></script>
    <script type="text/javascript" src="/webapp/js/lib/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/webapp/js/lib/ajaxfileupload.js"></script>
    <script type="text/javascript" src="/webapp/js/common/config.js"></script>
</head>
<body>
     <div class="easyui-container-fluid">
         <div class="easyui-panel" style="border:none;">
             <div class="nav" id="nav"></div>
             <div class="easyui-panel" style="border:none;">
                 <form id="ff">
                     <div style="margin-bottom:20px;">
                         <label class="item-label">年份：</label>
                         <input type="text" class="easyui-combobox" name="year" style="width:100px;"/>
                         <label class="item-label">月份：</label>
                         <input type="text" class="easyui-combobox" name="month" style="width:100px;"/>
                         <label class="item-label">渠道：</label>
                         <input type="text" class="easyui-combobox" name="channelCode" style="width:100px;"/>
                     </div>
                     <div style="margin-bottom:20px;text-align:center;">
                         <a href="javascript:void(0);" style="width:80px;" class="easyui-linkbutton" onclick="searchBy()">查询</a>
                     </div>
                 </form>
             </div>
             <div class="table-wrapper">
                 <table id="datagrid" class="easyui-datagrid" data-options="scrollbarSize:0">
                     <thead>
                        <tr>
                            <th data-options="field:'categoryName',align:'center'" width="80">品类</th>
                            <th data-options="field:'categoryName',align:'center'" width="100">去年同期条数</th>
                            <th data-options="field:'categoryName',align:'center'" width="100">上上周条数</th>
                            <th data-options="field:'categoryName',align:'center'" width="100">上周条数</th>
                            <th data-options="field:'categoryName',align:'center'" width="80">本周条数</th>
                            <th data-options="field:'categoryName',align:'center'" width="100">去年同期销量</th>
                            <th data-options="field:'categoryName',align:'center'" width="80">上上周销量</th>
                            <th data-options="field:'categoryName',align:'center'" width="80">上周销量</th>
                            <th data-options="field:'categoryName',align:'center'" width="80">本周销量</th>
                        </tr>
                     </thead>
                 </table>
             </div>
         </div>
     </div>
     <script type="text/javascript">
         $(function(){
             setNav();
             $("#datagrid").datagrid({
                 pagination:true,
                 rownumbers:true
             });
             $.ajax({
                 url:config.url + "/sales/detail",
                 type:"get",
                 xhrFields:{withCredentials:true},
                 data:{size:10},
                 success:function(data){
                     $("#datagrid").datagrid({data:data.content}).datagrid("getPager").pagination({
                         pageList:[10,15,20,25,30,35,40,50,100],
                         displayMsg:"共"+data.totalElements+"条记录"
                     });
                 },
                 error:function(data){
                     console.log(data);
                 }
             });
         });
     </script>
</body>
</html>